package de.java.shortys.myhome.fuelmonitor.model.wrapper;

import java.util.Calendar;

import de.java.shortys.myhome.api.model.DataHolder;

public class FuelFillingWrapper extends DataHolder {

	public static final String DATA_HOLDER_DESCRIPTION_PATH = "de/java/shortys/myhome/fuelmonitor/model/description/FuelFilling.xml";

	public static final String ATTR_KEY = "key";

	public static final String ATTR_DATE_ADDED = "dateAdded";

	public static final String ATTR_DATE_EDITED = "dateEdited";

	public static final String ATTR_DATE_FILLED = "dateFilled";

	public static final String ATTR_DISTANCE = "distance";

	public static final String ATTR_AMOUNT = "amount";

	public static final String ATTR_CHARGES = "charges";

	public FuelFillingWrapper() {
		super(DATA_HOLDER_DESCRIPTION_PATH);
	}

	public Double getAmount() {
		return (Double) getValue(ATTR_AMOUNT);
	}

	public Double getCharges() {
		return (Double) getValue(ATTR_CHARGES);
	}

	public Calendar getDateAdded() {
		return (Calendar) getValue(ATTR_DATE_ADDED);
	}

	public Calendar getDateEdited() {
		return (Calendar) getValue(ATTR_DATE_EDITED);
	}

	public Calendar getDateFilled() {
		return (Calendar) getValue(ATTR_DATE_FILLED);
	}

	public Double getDistance() {
		return (Double) getValue(ATTR_DISTANCE);
	}

	public String getKey() {
		return (String) getValue(ATTR_KEY);
	}

	public void setAmount(Double amount) {
		setValue(ATTR_AMOUNT, amount);
	}

	public void setCharges(Double charges) {
		setValue(ATTR_CHARGES, charges);
	}

	public void setDateAdded(Calendar dateAdded) {
		setValue(ATTR_DATE_ADDED, dateAdded);
	}

	public void setDateEdited(Calendar dateEdited) {
		setValue(ATTR_DATE_EDITED, dateEdited);
	}

	public void setDateFilled(Calendar dateFilled) {
		setValue(ATTR_DATE_FILLED, dateFilled);
	}

	public void setDistance(Double distance) {
		setValue(ATTR_DISTANCE, distance);
	}

	public void setKey(String key) {
		setValue(ATTR_KEY, key);
	}

}
